package com.dengc.service;

import com.dengc.pojo.SysUser;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface SysUserService {
    //实现用户登录功能
    public SysUser login(String account,String password);

    //根据id主键修改密码&&修改信息通用
    public int updateSysUser(SysUser sysUser);

    //分页查询用户信息
    public PageInfo<SysUser> getSysUserByPage(SysUser sysUser, int pageNum);

    //根据id查询用户信息
    public SysUser getIdSysUser(Integer id);

    //新增用户信息
    public int addUser(SysUser sysUser);

    //删除用户信息
    public int deleteUser(Integer id);

    //查找角色id查找用户数量
    public int getCountByRoleId(Integer roleid);
}
